﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace BF
{
    [RequireComponent(typeof(RectTransform))]
    public abstract class MonoRecycleItem2D : MonoRecycleItem
    {
        private RectTransform _rectTransform;
        public RectTransform rectTransform
        {
            get
            {
                if (_rectTransform == null)
                {
                    _rectTransform = transform as RectTransform;
                }
                return _rectTransform;
            }
        }
    }

    [System.Obsolete("Use MonoRecycleItem2D instead")]
    public abstract class MonoRecycleItem2D<T> : MonoRecycleItem2D where T : MonoRecycleItem2D
    {

    }
}